<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
	<div id="app">
		<p>
			<button @click="test1">测试1</button>
			<button @click="test2">测试2</button>	
			<button @click="test3($event)">测试3</button>
			<button @click="test3('123', $event)">测试4</button>	
		</p>
	</div>
<script type="text/javascript" src="../js/vue.js"></script>
<script type="text/javascript">
	var vm = new Vue({
		el: '#app',
		methods: {
			test1: function() {
				alert('1111');
			},
			test2: function(event) {
				alert(event.target.nodeName);
			},
			test3: function(event) {
				alert(event.target.nodeName);
			},
			test4: function(name, event) {
				alert(event.target.nodeName);
			}
		}
	});
</script>
</body>
</html>